<%--
  Created by IntelliJ IDEA.
  User: JYC
  Date: 2022/4/18
  Time: 12:32:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div id="ecCust01" style="width: 100%;height: 500px"></div>
<script type="text/javascript">
    $.get('custCount01', function (res) {
        let ec1 = echarts.init(document.getElementById('ecCust01'));
        let option = {
            tooltip: {
                trigger: 'item'
            },
            legend: {
                top: '5%',
                left: 'center'
            },
            series: [
                {
                    name: '客户地区统计',
                    type: 'pie',
                    radius: ['40%', '70%'],
                    avoidLabelOverlap: false,
                    itemStyle: {
                        borderRadius: 10,
                        borderColor: '#fff',
                        borderWidth: 2
                    },
                    label: {
                        show: false,
                        position: 'center'
                    },
                    emphasis: {
                        label: {
                            show: true,
                            fontSize: '30',
                            fontWeight: 'bold'
                        }
                    },
                    labelLine: {
                        show: false
                    },
                    data: res
                }
            ]
        };
        ec1.setOption(option);
    })
</script>
</body>
</html>
